package com.zjz.demo;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/10/08/12:01
 * @Description:
 * @Target: 看看java能否开线程,看自己的CPU数量
 */
public class Test1 {


    public static void main(String[] args) {
        // 获取CPU的核数
        // CPU,密集型,IO密集型
        System.out.println(Runtime.getRuntime().availableProcessors());




    }

}
